home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / Video.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  36.5 KB  |  882 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Video.h
  3.  
  4.      Contains:    Video Driver Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1986-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __VIDEO__
  18. #define __VIDEO__
  19.  
  20. #ifndef __QUICKDRAW__
  21. #include <Quickdraw.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46.  
  47. enum {
  48.     mBaseOffset                    = 1,                            /*Id of mBaseOffset.*/
  49.     mRowBytes                    = 2,                            /*Video sResource parameter Id's */
  50.     mBounds                        = 3,                            /*Video sResource parameter Id's */
  51.     mVersion                    = 4,                            /*Video sResource parameter Id's */
  52.     mHRes                        = 5,                            /*Video sResource parameter Id's */
  53.     mVRes                        = 6,                            /*Video sResource parameter Id's */
  54.     mPixelType                    = 7,                            /*Video sResource parameter Id's */
  55.     mPixelSize                    = 8,                            /*Video sResource parameter Id's */
  56.     mCmpCount                    = 9,                            /*Video sResource parameter Id's */
  57.     mCmpSize                    = 10,                            /*Video sResource parameter Id's */
  58.     mPlaneBytes                    = 11,                            /*Video sResource parameter Id's */
  59.     mVertRefRate                = 14,                            /*Video sResource parameter Id's */
  60.     mVidParams                    = 1,                            /*Video parameter block id.*/
  61.     mTable                        = 2,                            /*Offset to the table.*/
  62.     mPageCnt                    = 3,                            /*Number of pages*/
  63.     mDevType                    = 4,                            /*Device Type*/
  64.     oneBitMode                    = 128,                            /*Id of OneBitMode Parameter list.*/
  65.     twoBitMode                    = 129,                            /*Id of TwoBitMode Parameter list.*/
  66.     fourBitMode                    = 130,                            /*Id of FourBitMode Parameter list.*/
  67.     eightBitMode                = 131                            /*Id of EightBitMode Parameter list.*/
  68. };
  69.  
  70.  
  71. enum {
  72.     sixteenBitMode                = 132,                            /*Id of SixteenBitMode Parameter list.*/
  73.     thirtyTwoBitMode            = 133,                            /*Id of ThirtyTwoBitMode Parameter list.*/
  74.     firstVidMode                = 128,                            /*The new, better way to do the above. */
  75.     secondVidMode                = 129,                            /* QuickDraw only supports six video */
  76.     thirdVidMode                = 130,                            /* at this time.      */
  77.     fourthVidMode                = 131,
  78.     fifthVidMode                = 132,
  79.     sixthVidMode                = 133,
  80.     spGammaDir                    = 64,
  81.     spVidNamesDir                = 65
  82. };
  83.  
  84.  
  85. /* csTimingFormat values in VDTimingInfo */
  86. /* look in the declaration rom for timing info */
  87.  
  88. enum {
  89.     kDeclROMtables                = FOUR_CHAR_CODE('decl')
  90. };
  91.  
  92. /* Size of a block of EDID (Extended Display Identification Data) */
  93.  
  94. enum {
  95.     kDDCBlockSize                = 128
  96. };
  97.  
  98. /* ddcBlockType constants*/
  99.  
  100. enum {
  101.     kDDCBlockTypeEDID            = 0                                /* EDID block type. */
  102. };
  103.  
  104. /* ddcFlags constants*/
  105.  
  106. enum {
  107.     kDDCForceReadBit            = 0,                            /* Force a new read of the EDID. */
  108.     kDDCForceReadMask            = (1 << kDDCForceReadBit)        /* Mask for kddcForceReadBit. */
  109. };
  110.  
  111.  
  112. /* Timing mode constants for Display Manager MultiMode support
  113.     Corresponding    .h equates are in Video.h
  114.                     .a equates are in Video.a
  115.                     .r equates are in DepVideoEqu.r
  116.     
  117.     The second enum is the old names (for compatibility).
  118.     The first enum is the new names.
  119. */
  120.  
  121. enum {
  122.     timingInvalid                = 0,                            /*    Unknown timing… force user to confirm. */
  123.     timingInvalid_SM_T24        = 8,                            /*    Work around bug in SM Thunder24 card.*/
  124.     timingApple_FixedRateLCD    = 42,                            /*    Lump all fixed-rate LCDs into one category.*/
  125.     timingApple_512x384_60hz    = 130,                            /*  512x384  (60 Hz) Rubik timing. */
  126.     timingApple_560x384_60hz    = 135,                            /*  560x384  (60 Hz) Rubik-560 timing. */
  127.     timingApple_640x480_67hz    = 140,                            /*  640x480  (67 Hz) HR timing. */
  128.     timingApple_640x400_67hz    = 145,                            /*  640x400  (67 Hz) HR-400 timing. */
  129.     timingVESA_640x480_60hz        = 150,                            /*  640x480  (60 Hz) VGA timing. */
  130.     timingVESA_640x480_72hz        = 152,                            /*  640x480  (72 Hz) VGA timing. */
  131.     timingVESA_640x480_75hz        = 154,                            /*  640x480  (75 Hz) VGA timing. */
  132.     timingVESA_640x480_85hz        = 158,                            /*  640x480  (85 Hz) VGA timing. */
  133.     timingGTF_640x480_120hz        = 159,                            /*  640x480  (120 Hz) VESA Generalized Timing Formula */
  134.     timingApple_640x870_75hz    = 160,                            /*  640x870  (75 Hz) FPD timing.*/
  135.     timingApple_640x818_75hz    = 165,                            /*  640x818  (75 Hz) FPD-818 timing.*/
  136.     timingApple_832x624_75hz    = 170,                            /*  832x624  (75 Hz) GoldFish timing.*/
  137.     timingVESA_800x600_56hz        = 180,                            /*  800x600  (56 Hz) SVGA timing. */
  138.     timingVESA_800x600_60hz        = 182,                            /*  800x600  (60 Hz) SVGA timing. */
  139.     timingVESA_800x600_72hz        = 184,                            /*  800x600  (72 Hz) SVGA timing. */
  140.     timingVESA_800x600_75hz        = 186,                            /*  800x600  (75 Hz) SVGA timing. */
  141.     timingVESA_800x600_85hz        = 188,                            /*  800x600  (85 Hz) SVGA timing. */
  142.     timingVESA_1024x768_60hz    = 190,                            /* 1024x768  (60 Hz) VESA 1K-60Hz timing. */
  143.     timingVESA_1024x768_70hz    = 200,                            /* 1024x768  (70 Hz) VESA 1K-70Hz timing. */
  144.     timingVESA_1024x768_75hz    = 204,                            /* 1024x768  (75 Hz) VESA 1K-75Hz timing (very similar to timingApple_1024x768_75hz). */
  145.     timingVESA_1024x768_85hz    = 208,                            /* 1024x768  (85 Hz) VESA timing. */
  146.     timingApple_1024x768_75hz    = 210,                            /* 1024x768  (75 Hz) Apple 19" RGB. */
  147.     timingApple_1152x870_75hz    = 220,                            /* 1152x870  (75 Hz) Apple 21" RGB. */
  148.     timingAppleNTSC_ST            = 230,                            /*  512x384  (60 Hz, interlaced, non-convolved). */
  149.     timingAppleNTSC_FF            = 232,                            /*  640x480  (60 Hz, interlaced, non-convolved). */
  150.     timingAppleNTSC_STconv        = 234,                            /*  512x384  (60 Hz, interlaced, convolved). */
  151.     timingAppleNTSC_FFconv        = 236,                            /*  640x480  (60 Hz, interlaced, convolved). */
  152.     timingApplePAL_ST            = 238,                            /*  640x480  (50 Hz, interlaced, non-convolved). */
  153.     timingApplePAL_FF            = 240,                            /*  768x576  (50 Hz, interlaced, non-convolved). */
  154.     timingApplePAL_STconv        = 242,                            /*  640x480  (50 Hz, interlaced, convolved). */
  155.     timingApplePAL_FFconv        = 244,                            /*  768x576  (50 Hz, interlaced, convolved). */
  156.     timingVESA_1280x960_75hz    = 250,                            /* 1280x960  (75 Hz) */
  157.     timingVESA_1280x960_60hz    = 252,                            /* 1280x960  (60 Hz) */
  158.     timingVESA_1280x960_85hz    = 254,                            /* 1280x960  (85 Hz) */
  159.     timingVESA_1280x1024_60hz    = 260,                            /* 1280x1024 (60 Hz) */
  160.     timingVESA_1280x1024_75hz    = 262,                            /* 1280x1024 (75 Hz) */
  161.     timingVESA_1280x1024_85hz    = 268,                            /* 1280x1024 (85 Hz) */
  162.     timingVESA_1600x1200_60hz    = 280,                            /* 1600x1200 (60 Hz) VESA timing. */
  163.     timingVESA_1600x1200_65hz    = 282,                            /* 1600x1200 (65 Hz) VESA timing. */
  164.     timingVESA_1600x1200_70hz    = 284,                            /* 1600x1200 (70 Hz) VESA timing. */
  165.     timingVESA_1600x1200_75hz    = 286,                            /* 1600x1200 (75 Hz) VESA timing (pixel clock is 189.2 Mhz dot clock). */
  166.     timingVESA_1600x1200_80hz    = 288,                            /* 1600x1200 (80 Hz) VESA timing (pixel clock is 216>? Mhz dot clock) - proposed only. */
  167.     timingVESA_1600x1200_85hz    = 289,                            /* 1600x1200 (85 Hz) VESA timing (pixel clock is 229.5 Mhz dot clock). */
  168.     timingSMPTE240M_60hz        = 400,                            /* 60Hz V, 33.75KHz H, interlaced timing, 16:9 aspect, typical resolution of 1920x1035. */
  169.     timingFilmRate_48hz            = 410,                            /* 48Hz V, 25.20KHz H, non-interlaced timing, typical resolution of 640x480. */
  170.     timingSony_1600x1024_76hz    = 500,                            /* 1600x1024 (76 Hz) Sony timing (pixel clock is 170.447 Mhz dot clock). */
  171.     timingSony_1920x1080_60hz    = 510,                            /* 1920x1080 (60 Hz) Sony timing (pixel clock is 159.84 Mhz dot clock). */
  172.     timingSony_1920x1080_72hz    = 520,                            /* 1920x1080 (72 Hz) Sony timing (pixel clock is 216.023 Mhz dot clock). */
  173.     timingSony_1900x1200_74hz    = 530,                            /* 1900x1200 (74 Hz) Sony timing (pixel clock is 236.25 Mhz dot clock). */
  174.     timingSony_1900x1200_76hz    = 540                            /* 1900x1200 (76 Hz) Sony timing (pixel clock is 245.48 Mhz dot clock). */
  175. };
  176.  
  177.  
  178. /* Deprecated timing names.*/
  179.  
  180. enum {
  181.     timingApple12                = timingApple_512x384_60hz,
  182.     timingApple12x                = timingApple_560x384_60hz,
  183.     timingApple13                = timingApple_640x480_67hz,
  184.     timingApple13x                = timingApple_640x400_67hz,
  185.     timingAppleVGA                = timingVESA_640x480_60hz,
  186.     timingApple15                = timingApple_640x870_75hz,
  187.     timingApple15x                = timingApple_640x818_75hz,
  188.     timingApple16                = timingApple_832x624_75hz,
  189.     timingAppleSVGA                = timingVESA_800x600_56hz,
  190.     timingApple1Ka                = timingVESA_1024x768_60hz,
  191.     timingApple1Kb                = timingVESA_1024x768_70hz,
  192.     timingApple19                = timingApple_1024x768_75hz,
  193.     timingApple21                = timingApple_1152x870_75hz
  194. };
  195.  
  196. /* csConnectFlags values in VDDisplayConnectInfo */
  197.  
  198. enum {
  199.     kAllModesValid                = 0,                            /* All modes not trimmed by primary init are good close enough to try */
  200.     kAllModesSafe                = 1,                            /* All modes not trimmed by primary init are know to be safe */
  201.     kReportsTagging                = 2,                            /* Can detect tagged displays (to identify smart monitors) */
  202.     kHasDirectConnection        = 3,                            /* True implies that driver can talk directly to device (e.g. serial data link via sense lines) */
  203.     kIsMonoDev                    = 4,                            /* Says whether there’s an RGB (0) or Monochrome (1) connection. */
  204.     kUncertainConnection        = 5,                            /* There may not be a display (no sense lines?). */
  205.     kTaggingInfoNonStandard        = 6,                            /* Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). */
  206.     kReportsDDCConnection        = 7,                            /* Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). */
  207.     kHasDDCConnection            = 8,                            /* Card has ddc connect now. */
  208.     kConnectionInactive            = 9,                            /* Set when the connection is NOT currently active (generally used in a multiconnection environment). */
  209.     kDependentConnection        = 10,                            /* Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). */
  210.     kBuiltInConnection            = 11,                            /* Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). */
  211.     kOverrideConnection            = 12,                            /* Set when the reported connection is not the true one, but is one that has been forced through a SetConnection call */
  212.     kFastCheckForDDC            = 13                            /* Set when all 3 are true: 1) sense codes indicate DDC display could be attached 2) attempted fast check 3) DDC failed */
  213. };
  214.  
  215.  
  216. /* csDisplayType values in VDDisplayConnectInfo */
  217.  
  218. enum {
  219.     kUnknownConnect                = 1,                            /* Not sure how we’ll use this, but seems like a good idea. */
  220.     kPanelConnect                = 2,                            /* For use with fixed-in-place LCD panels. */
  221.     kPanelTFTConnect            = 2,                            /* Alias for kPanelConnect */
  222.     kFixedModeCRTConnect        = 3,                            /*  For use with fixed-mode (i.e., very limited range) displays. */
  223.     kMultiModeCRT1Connect        = 4,                            /* 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe */
  224.     kMultiModeCRT2Connect        = 5,                            /* 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe */
  225.     kMultiModeCRT3Connect        = 6,                            /* 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain */
  226.     kMultiModeCRT4Connect        = 7,                            /* Expansion to large multi mode (not yet used) */
  227.     kModelessConnect            = 8,                            /* Expansion to modeless model (not yet used) */
  228.     kFullPageConnect            = 9,                            /* 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) */
  229.     kVGAConnect                    = 10,                            /* 640x480 VGA default -- question everything else */
  230.     kNTSCConnect                = 11,                            /* NTSC ST (default), FF, STconv, FFconv */
  231.     kPALConnect                    = 12,                            /* PAL ST (default), FF, STconv, FFconv */
  232.     kHRConnect                    = 13,                            /* Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) */
  233.     kPanelFSTNConnect            = 14,                            /* For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels */
  234.     kMonoTwoPageConnect            = 15,                            /* 1152x870 Apple color two-page display */
  235.     kColorTwoPageConnect        = 16,                            /* 1152x870 Apple B&W two-page display */
  236.     kColor16Connect                = 17,                            /* 832x624 Apple B&W two-page display */
  237.     kColor19Connect                = 18,                            /* 1024x768 Apple B&W two-page display */
  238.     kGenericCRT                    = 19,                            /* Indicates nothing except that connection is CRT in nature. */
  239.     kGenericLCD                    = 20,                            /* Indicates nothing except that connection is LCD in nature. */
  240.     kDDCConnect                    = 21                            /* DDC connection, always set kHasDDCConnection */
  241. };
  242.  
  243. /* csTimingFlags values in VDTimingInfoRec */
  244.  
  245. enum {
  246.     kModeValid                    = 0,                            /* Says that this mode should NOT be trimmed. */
  247.     kModeSafe                    = 1,                            /* This mode does not need confirmation */
  248.     kModeDefault                = 2,                            /* This is the default mode for this type of connection */
  249.     kModeShowNow                = 3,                            /* This mode should always be shown (even though it may require a confirm) */
  250.     kModeNotResize                = 4,                            /* This mode should not be used to resize the display (eg. mode selects a different connector on card) */
  251.     kModeRequiresPan            = 5,                            /* This mode has more pixels than are actually displayed */
  252.     kModeInterlaced                = 6,                            /* This mode is interlaced (single pixel lines look bad). */
  253.     kModeShowNever                = 7,                            /* This mode should not be shown in the user interface. */
  254.     kModeSimulscan                = 8,                            /* Indicates that more than one display connection can be driven from a single framebuffer controller. */
  255.     kModeNotPreset                = 9,                            /* Indicates that the timing is not a factory preset for the current display (geometry may need correction) */
  256.     kModeBuiltIn                = 10                            /* Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried */
  257. };
  258.  
  259. /* csDepthFlags in VDVideoParametersInfoRec */
  260.  
  261. enum {
  262.     kDepthDependent                = 0                                /* Says that this depth mode may cause dependent changes in other framebuffers (and . */
  263. };
  264.  
  265. /* csResolutionFlags bit flags for VDResolutionInfoRec */
  266.  
  267. enum {
  268.     kResolutionHasMultipleDepthSizes = 0                        /* Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) */
  269. };
  270.  
  271.  
  272.  
  273. enum {
  274.                                                                 /*    Power Mode constants for VDPowerStateRec.powerState.  Note the numeric order does not match the power state order */
  275.     kAVPowerOff                    = 0,                            /* Power fully off*/
  276.     kAVPowerStandby                = 1,
  277.     kAVPowerSuspend                = 2,
  278.     kAVPowerOn                    = 3
  279. };
  280.  
  281.  
  282. enum {
  283.                                                                 /*    Power Mode masks and bits for VDPowerStateRec.powerFlags.    */
  284.     kPowerStateNeedsRefresh        = 0,                            /* When leaving this power mode, a display will need refreshing    */
  285.     kPowerStateSleepAwareBit    = 1,                            /* if gestaltPCCardDockingSelectorFix, Docking mgr checks this bit before checking kPowerStateSleepAllowedBit */
  286.     kPowerStateSleepForbiddenBit = 2,                            /* if kPowerStateSleepAwareBit, Docking mgr checks this bit before sleeping */
  287.     kPowerStateNeedsRefreshMask    = (1L << kPowerStateNeedsRefresh),
  288.     kPowerStateSleepAwareMask    = (1L << kPowerStateSleepAwareBit),
  289.     kPowerStateSleepForbiddenMask = (1L << kPowerStateSleepForbiddenBit)
  290. };
  291.  
  292.  
  293.  
  294. enum {
  295.                                                                 /* Control Codes */
  296.     cscReset                    = 0,
  297.     cscKillIO                    = 1,
  298.     cscSetMode                    = 2,
  299.     cscSetEntries                = 3,
  300.     cscSetGamma                    = 4,
  301.     cscGrayPage                    = 5,
  302.     cscGrayScreen                = 5,
  303.     cscSetGray                    = 6,
  304.     cscSetInterrupt                = 7,
  305.     cscDirectSetEntries            = 8,
  306.     cscSetDefaultMode            = 9,
  307.     cscSwitchMode                = 10,
  308.     cscSetSync                    = 11,
  309.     cscSavePreferredConfiguration = 16,
  310.     cscSetHardwareCursor        = 22,
  311.     cscDrawHardwareCursor        = 23,
  312.     cscSetConvolution            = 24,
  313.     cscSetPowerState            = 25,
  314.     cscPrivateControlCall        = 26,                            /* Takes a VDPrivateSelectorDataRec*/
  315.     cscSetMultiConnect            = 28,                            /* From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.*/
  316.     cscSetClutBehavior            = 29,                            /* Takes a VDClutBehavior */
  317.     cscUnusedCall                = 127                            /* This call used to expend the scrn resource.  Its imbedded data contains more control info */
  318. };
  319.  
  320.  
  321. enum {
  322.                                                                 /* Status Codes */
  323.     cscGetMode                    = 2,
  324.     cscGetEntries                = 3,
  325.     cscGetPageCnt                = 4,
  326.     cscGetPages                    = 4,                            /* This is what C&D 2 calls it. */
  327.     cscGetPageBase                = 5,
  328.     cscGetBaseAddr                = 5,                            /* This is what C&D 2 calls it. */
  329.     cscGetGray                    = 6,
  330.     cscGetInterrupt                = 7,
  331.     cscGetGamma                    = 8,
  332.     cscGetDefaultMode            = 9,
  333.     cscGetCurMode                = 10,
  334.     cscGetSync                    = 11,
  335.     cscGetConnection            = 12,                            /* Return information about the connection to the display */
  336.     cscGetModeTiming            = 13,                            /* Return timing info for a mode */
  337.     cscGetModeBaseAddress        = 14,                            /* Return base address information about a particular mode */
  338.     cscGetScanProc                = 15,                            /* QuickTime scan chasing routine */
  339.     cscGetPreferredConfiguration = 16,
  340.     cscGetNextResolution        = 17,
  341.     cscGetVideoParameters        = 18,
  342.     cscGetGammaInfoList            = 20,
  343.     cscRetrieveGammaTable        = 21,
  344.     cscSupportsHardwareCursor    = 22,
  345.     cscGetHardwareCursorDrawState = 23,
  346.     cscGetConvolution            = 24,
  347.     cscGetPowerState            = 25,
  348.     cscPrivateStatusCall        = 26,                            /* Takes a VDPrivateSelectorDataRec*/
  349.     cscGetDDCBlock                = 27,                            /* Takes a VDDDCBlockRec  */
  350.     cscGetMultiConnect            = 28,                            /* From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.*/
  351.     cscGetClutBehavior            = 29                            /* Takes a VDClutBehavior */
  352. };
  353.  
  354. /* Bit definitions for the Get/Set Sync call*/
  355.  
  356. enum {
  357.     kDisableHorizontalSyncBit    = 0,
  358.     kDisableVerticalSyncBit        = 1,
  359.     kDisableCompositeSyncBit    = 2,
  360.     kEnableSyncOnBlue            = 3,
  361.     kEnableSyncOnGreen            = 4,
  362.     kEnableSyncOnRed            = 5,
  363.     kNoSeparateSyncControlBit    = 6,
  364.     kTriStateSyncBit            = 7,
  365.     kHorizontalSyncMask            = 0x01,
  366.     kVerticalSyncMask            = 0x02,
  367.     kCompositeSyncMask            = 0x04,
  368.     kDPMSSyncMask                = 0x07,
  369.     kTriStateSyncMask            = 0x80,
  370.     kSyncOnBlueMask                = 0x08,
  371.     kSyncOnGreenMask            = 0x10,
  372.     kSyncOnRedMask                = 0x20,
  373.     kSyncOnMask                    = 0x38
  374. };
  375.  
  376.  
  377. enum {
  378.                                                                 /*    Power Mode constants for translating DPMS modes to Get/SetSync calls.    */
  379.     kDPMSSyncOn                    = 0,
  380.     kDPMSSyncStandby            = 1,
  381.     kDPMSSyncSuspend            = 2,
  382.     kDPMSSyncOff                = 7
  383. };
  384.  
  385. /* Bit definitions for the Get/Set Convolution call*/
  386.  
  387. enum {
  388.     kConvolved                    = 0,
  389.     kLiveVideoPassThru            = 1,
  390.     kConvolvedMask                = 0x01,
  391.     kLiveVideoPassThruMask        = 0x02
  392. };
  393.  
  394.  
  395.  
  396. struct VPBlock {
  397.     long                             vpBaseOffset;                /*Offset to page zero of video RAM (From minorBaseOS).*/
  398.     short                             vpRowBytes;                    /*Width of each row of video memory.*/
  399.     Rect                             vpBounds;                    /*BoundsRect for the video display (gives dimensions).*/
  400.     short                             vpVersion;                    /*PixelMap version number.*/
  401.     short                             vpPackType;
  402.     long                             vpPackSize;
  403.     long                             vpHRes;                        /*Horizontal resolution of the device (pixels per inch).*/
  404.     long                             vpVRes;                        /*Vertical resolution of the device (pixels per inch).*/
  405.     short                             vpPixelType;                /*Defines the pixel type.*/
  406.     short                             vpPixelSize;                /*Number of bits in pixel.*/
  407.     short                             vpCmpCount;                    /*Number of components in pixel.*/
  408.     short                             vpCmpSize;                    /*Number of bits per component*/
  409.     long                             vpPlaneBytes;                /*Offset from one plane to the next.*/
  410. };
  411. typedef struct VPBlock                    VPBlock;
  412. typedef VPBlock *                        VPBlockPtr;
  413.  
  414. struct VDEntryRecord {
  415.     Ptr                             csTable;                    /*(long) pointer to color table entry=value, r,g,b:INTEGER*/
  416. };
  417. typedef struct VDEntryRecord            VDEntryRecord;
  418.  
  419. typedef VDEntryRecord *                    VDEntRecPtr;
  420. /* Parm block for SetGray control call */
  421.  
  422. struct VDGrayRecord {
  423.     Boolean                         csMode;                        /*Same as GDDevType value (0=color, 1=mono)*/
  424.     SInt8                             filler;
  425. };
  426. typedef struct VDGrayRecord                VDGrayRecord;
  427.  
  428. typedef VDGrayRecord *                    VDGrayPtr;
  429. /* Parm block for SetInterrupt call */
  430.  
  431. struct VDFlagRecord {
  432.     SInt8                             csMode;
  433.     SInt8                             filler;
  434. };
  435. typedef struct VDFlagRecord                VDFlagRecord;
  436.  
  437. typedef VDFlagRecord *                    VDFlagRecPtr;
  438. /* Parm block for SetEntries control call */
  439.  
  440. struct VDSetEntryRecord {
  441.     ColorSpec *                        csTable;                    /*Pointer to an array of color specs*/
  442.     short                             csStart;                    /*Which spec in array to start with, or -1*/
  443.     short                             csCount;                    /*Number of color spec entries to set*/
  444. };
  445. typedef struct VDSetEntryRecord            VDSetEntryRecord;
  446.  
  447. typedef VDSetEntryRecord *                VDSetEntryPtr;
  448. /* Parm block for SetGamma control call */
  449.  
  450. struct VDGammaRecord {
  451.     Ptr                             csGTable;                    /*pointer to gamma table*/
  452. };
  453. typedef struct VDGammaRecord            VDGammaRecord;
  454.  
  455. typedef VDGammaRecord *                    VDGamRecPtr;
  456.  
  457. struct VDBaseAddressInfoRec {
  458.     long                             csDevData;                    /* LONGINT - (long) timing mode */
  459.     long                             csDevBase;                    /* LONGINT - (long) base address of the mode */
  460.     short                             csModeReserved;                /* INTEGER - (short) will some day be the depth */
  461.     long                             csModeBase;                    /* LONGINT - (long) reserved */
  462. };
  463. typedef struct VDBaseAddressInfoRec        VDBaseAddressInfoRec;
  464.  
  465. typedef VDBaseAddressInfoRec *            VDBaseAddressInfoPtr;
  466.  
  467. struct VDSwitchInfoRec {
  468.     unsigned short                     csMode;                        /*(word) mode depth*/
  469.     unsigned long                     csData;                        /*(long) functional sResource of mode*/
  470.     unsigned short                     csPage;                        /*(word) page to switch in*/
  471.     Ptr                             csBaseAddr;                    /*(long) base address of page (return value)*/
  472.     unsigned long                     csReserved;                    /*(long) Reserved (set to 0) */
  473. };
  474. typedef struct VDSwitchInfoRec            VDSwitchInfoRec;
  475.  
  476. typedef VDSwitchInfoRec *                VDSwitchInfoPtr;
  477.  
  478. struct VDTimingInfoRec {
  479.     unsigned long                     csTimingMode;                /* LONGINT - (long) timing mode (a la InitGDevice) */
  480.     unsigned long                     csTimingReserved;            /* LONGINT - (long) reserved */
  481.     unsigned long                     csTimingFormat;                /* LONGINT - (long) what format is the timing info */
  482.     unsigned long                     csTimingData;                /* LONGINT - (long) data supplied by driver */
  483.     unsigned long                     csTimingFlags;                /* LONGINT - (long) mode within device */
  484. };
  485. typedef struct VDTimingInfoRec            VDTimingInfoRec;
  486.  
  487. typedef VDTimingInfoRec *                VDTimingInfoPtr;
  488.  
  489. struct VDDisplayConnectInfoRec {
  490.     unsigned short                     csDisplayType;                /* INTEGER - (word) Type of display connected */
  491.     unsigned char                     csConnectTaggedType;        /* BYTE - type of tagging */
  492.     unsigned char                     csConnectTaggedData;        /* BYTE - tagging data */
  493.     unsigned long                     csConnectFlags;                /* LONGINT - (long) tell us about the connection */
  494.     unsigned long                     csDisplayComponent;            /* LONGINT - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) */
  495.     unsigned long                     csConnectReserved;            /* LONGINT - (long) reserved */
  496. };
  497. typedef struct VDDisplayConnectInfoRec    VDDisplayConnectInfoRec;
  498.  
  499. typedef VDDisplayConnectInfoRec *        VDDisplayConnectInfoPtr;
  500.  
  501. struct VDMultiConnectInfoRec {
  502.     unsigned long                     csDisplayCountOrNumber;        /* For GetMultiConnect, returns count n of 1..n connections; otherwise, indicates the ith connection.*/
  503.     VDDisplayConnectInfoRec         csConnectInfo;                /* Standard VDDisplayConnectionInfo for connection i.*/
  504. };
  505. typedef struct VDMultiConnectInfoRec    VDMultiConnectInfoRec;
  506.  
  507. typedef VDMultiConnectInfoRec *            VDMultiConnectInfoPtr;
  508. /* RawSenseCode
  509.     This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  510.     for the possible raw sense code values when 'standard' sense code hardware is implemented.
  511.  
  512.     For 'standard' sense code hardware, the raw sense is obtained as follows:
  513.         • Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  514.         • Read the state of the monitor sense lines 2, 1, and 0.  (2 is the MSB, 0 the LSB)
  515.  
  516.     IMPORTANT Note: 
  517.     When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  518.     are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' 
  519.  
  520. */
  521. typedef unsigned char                     RawSenseCode;
  522.  
  523. enum {
  524.     kRSCZero                    = 0,
  525.     kRSCOne                        = 1,
  526.     kRSCTwo                        = 2,
  527.     kRSCThree                    = 3,
  528.     kRSCFour                    = 4,
  529.     kRSCFive                    = 5,
  530.     kRSCSix                        = 6,
  531.     kRSCSeven                    = 7
  532. };
  533.  
  534.  
  535. /* ExtendedSenseCode
  536.     This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  537.     for the values which are possible when the extended sense algorithm is applied to hardware
  538.     which implements 'standard' sense code hardware.
  539.  
  540.      For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  541.     (Note:  as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  542.         • Drive sense line 'A' low and read the values of 'B' and 'C'.  
  543.         • Drive sense line 'B' low and read the values of 'A' and 'C'.
  544.         • Drive sense line 'C' low and read the values of 'A' and 'B'.
  545.  
  546.     In this way, a six-bit number of the form BC/AC/AB is generated. 
  547.  
  548.     IMPORTANT Note: 
  549.     When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  550.     are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' 
  551.  
  552. */
  553. typedef unsigned char                     ExtendedSenseCode;
  554.  
  555. enum {
  556.     kESCZero21Inch                = 0x00,                            /* 21" RGB                                 */
  557.     kESCOnePortraitMono            = 0x14,                            /* Portrait Monochrome                     */
  558.     kESCTwo12Inch                = 0x21,                            /* 12" RGB                                */
  559.     kESCThree21InchRadius        = 0x31,                            /* 21" RGB (Radius)                        */
  560.     kESCThree21InchMonoRadius    = 0x34,                            /* 21" Monochrome (Radius)                 */
  561.     kESCThree21InchMono            = 0x35,                            /* 21" Monochrome                        */
  562.     kESCFourNTSC                = 0x0A,                            /* NTSC                                 */
  563.     kESCFivePortrait            = 0x1E,                            /* Portrait RGB                         */
  564.     kESCSixMSB1                    = 0x03,                            /* MultiScan Band-1 (12" thru 1Six")    */
  565.     kESCSixMSB2                    = 0x0B,                            /* MultiScan Band-2 (13" thru 19")        */
  566.     kESCSixMSB3                    = 0x23,                            /* MultiScan Band-3 (13" thru 21")        */
  567.     kESCSixStandard                = 0x2B,                            /* 13"/14" RGB or 12" Monochrome        */
  568.     kESCSevenPAL                = 0x00,                            /* PAL                                    */
  569.     kESCSevenNTSC                = 0x14,                            /* NTSC                                 */
  570.     kESCSevenVGA                = 0x17,                            /* VGA                                     */
  571.     kESCSeven16Inch                = 0x2D,                            /* 16" RGB (GoldFish)                      */
  572.     kESCSevenPALAlternate        = 0x30,                            /* PAL (Alternate)                         */
  573.     kESCSeven19Inch                = 0x3A,                            /* Third-Party 19”                        */
  574.     kESCSevenDDC                = 0x3E,                            /* DDC display                            */
  575.     kESCSevenNoDisplay            = 0x3F                            /* No display connected                 */
  576. };
  577.  
  578. /* DepthMode
  579.     This abstract data type is used to to reference RELATIVE pixel depths.
  580.     Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  581.  
  582.     Bits per pixel DOES NOT directly map to 'DepthMode'  For example, on some
  583.     graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  584.     hardware, 'kDepthMode1' may represent 8BPP.
  585.  
  586.     DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  587.     behave as expected.  The values of the constants which comprise the set are such
  588.     that 'kDepthMode4 < kDepthMode6' behaves as expected.
  589. */
  590. typedef unsigned short                     DepthMode;
  591.  
  592. enum {
  593.     kDepthMode1                    = 128,
  594.     kDepthMode2                    = 129,
  595.     kDepthMode3                    = 130,
  596.     kDepthMode4                    = 131,
  597.     kDepthMode5                    = 132,
  598.     kDepthMode6                    = 133
  599. };
  600.  
  601.  
  602. enum {
  603.     kFirstDepthMode                = 128,                            /* These constants are obsolete, and just included    */
  604.     kSecondDepthMode            = 129,                            /* for clients that have converted to the above        */
  605.     kThirdDepthMode                = 130,                            /* kDepthModeXXX constants.                            */
  606.     kFourthDepthMode            = 131,
  607.     kFifthDepthMode                = 132,
  608.     kSixthDepthMode                = 133
  609. };
  610.  
  611.  
  612.  
  613. struct VDPageInfo {
  614.     short                             csMode;                        /*(word) mode within device*/
  615.     long                             csData;                        /*(long) data supplied by driver*/
  616.     short                             csPage;                        /*(word) page to switch in*/
  617.     Ptr                             csBaseAddr;                    /*(long) base address of page*/
  618. };
  619. typedef struct VDPageInfo                VDPageInfo;
  620.  
  621. typedef VDPageInfo *                    VDPgInfoPtr;
  622.  
  623. struct VDSizeInfo {
  624.     short                             csHSize;                    /*(word) desired/returned h size*/
  625.     short                             csHPos;                        /*(word) desired/returned h position*/
  626.     short                             csVSize;                    /*(word) desired/returned v size*/
  627.     short                             csVPos;                        /*(word) desired/returned v position*/
  628. };
  629. typedef struct VDSizeInfo                VDSizeInfo;
  630.  
  631. typedef VDSizeInfo *                    VDSzInfoPtr;
  632.  
  633. struct VDSettings {
  634.     short                             csParamCnt;                    /*(word) number of params*/
  635.     short                             csBrightMax;                /*(word) max brightness*/
  636.     short                             csBrightDef;                /*(word) default brightness*/
  637.     short                             csBrightVal;                /*(word) current brightness*/
  638.     short                             csCntrstMax;                /*(word) max contrast*/
  639.     short                             csCntrstDef;                /*(word) default contrast*/
  640.     short                             csCntrstVal;                /*(word) current contrast*/
  641.     short                             csTintMax;                    /*(word) max tint*/
  642.     short                             csTintDef;                    /*(word) default tint*/
  643.     short                             csTintVal;                    /*(word) current tint*/
  644.     short                             csHueMax;                    /*(word) max hue*/
  645.     short                             csHueDef;                    /*(word) default hue*/
  646.     short                             csHueVal;                    /*(word) current hue*/
  647.     short                             csHorizDef;                    /*(word) default horizontal*/
  648.     short                             csHorizVal;                    /*(word) current horizontal*/
  649.     short                             csHorizMax;                    /*(word) max horizontal*/
  650.     short                             csVertDef;                    /*(word) default vertical*/
  651.     short                             csVertVal;                    /*(word) current vertical*/
  652.     short                             csVertMax;                    /*(word) max vertical*/
  653. };
  654. typedef struct VDSettings                VDSettings;
  655. typedef VDSettings *                    VDSettingsPtr;
  656.  
  657. struct VDDefMode {
  658.     UInt8                             csID;
  659.     SInt8                             filler;
  660. };
  661. typedef struct VDDefMode                VDDefMode;
  662. typedef VDDefMode *                        VDDefModePtr;
  663.  
  664. struct VDSyncInfoRec {
  665.     UInt8                             csMode;
  666.     UInt8                             csFlags;
  667. };
  668. typedef struct VDSyncInfoRec            VDSyncInfoRec;
  669.  
  670. typedef VDSyncInfoRec *                    VDSyncInfoPtr;
  671. typedef unsigned long                     DisplayModeID;
  672. typedef unsigned long                     VideoDeviceType;
  673. typedef unsigned long                     GammaTableID;
  674. /* Constants for the GetNextResolution call */
  675.  
  676. enum {
  677.     kDisplayModeIDCurrent        = 0x00,                            /* Reference the Current DisplayModeID */
  678.     kDisplayModeIDInvalid        = (long)0xFFFFFFFF,                /* A bogus DisplayModeID in all cases */
  679.     kDisplayModeIDFindFirstResolution = (long)0xFFFFFFFE,        /* Used in cscGetNextResolution to reset iterator */
  680.     kDisplayModeIDNoMoreResolutions = (long)0xFFFFFFFD            /* Used in cscGetNextResolution to indicate End Of List */
  681. };
  682.  
  683. /* Constants for the GetGammaInfoList call */
  684.  
  685. enum {
  686.     kGammaTableIDFindFirst        = (long)0xFFFFFFFE,                /* Get the first gamma table ID */
  687.     kGammaTableIDNoMoreTables    = (long)0xFFFFFFFD,                /* Used to indicate end of list */
  688.     kGammaTableIDSpecific        = 0x00                            /* Return the info for the given table id */
  689. };
  690.  
  691. /* Constants for GetMultiConnect call*/
  692.  
  693. enum {
  694.     kGetConnectionCount            = (long)0xFFFFFFFF,                /* Used to get the number of possible connections in a “multi-headed” framebuffer environment.*/
  695.     kActivateConnection            = (0 << kConnectionInactive),    /* Used for activating a connection (csConnectFlags value).*/
  696.     kDeactivateConnection        = (1 << kConnectionInactive)    /* Used for deactivating a connection (csConnectFlags value.)*/
  697. };
  698.  
  699.  
  700. struct VDResolutionInfoRec {
  701.     DisplayModeID                     csPreviousDisplayModeID;    /* ID of the previous resolution in a chain */
  702.     DisplayModeID                     csDisplayModeID;            /* ID of the next resolution */
  703.     unsigned long                     csHorizontalPixels;            /* # of pixels in a horizontal line at the max depth */
  704.     unsigned long                     csVerticalLines;            /* # of lines in a screen at the max depth */
  705.     Fixed                             csRefreshRate;                /* Vertical Refresh Rate in Hz */
  706.     DepthMode                         csMaxDepthMode;                /* 0x80-based number representing max bit depth */
  707.     unsigned long                     csResolutionFlags;            /* Reserved - flag bits */
  708.     unsigned long                     csReserved;                    /* Reserved */
  709. };
  710. typedef struct VDResolutionInfoRec        VDResolutionInfoRec;
  711.  
  712. typedef VDResolutionInfoRec *            VDResolutionInfoPtr;
  713.  
  714. struct VDVideoParametersInfoRec {
  715.     DisplayModeID                     csDisplayModeID;            /* the ID of the resolution we want info on */
  716.     DepthMode                         csDepthMode;                /* The bit depth we want the info on (0x80 based) */
  717.     VPBlockPtr                         csVPBlockPtr;                /* Pointer to a video parameter block */
  718.     unsigned long                     csPageCount;                /* Number of pages supported by the resolution */
  719.     VideoDeviceType                 csDeviceType;                /* Device Type:  Direct, Fixed or CLUT; */
  720.     UInt32                             csDepthFlags;                /* Flags */
  721. };
  722. typedef struct VDVideoParametersInfoRec    VDVideoParametersInfoRec;
  723.  
  724. typedef VDVideoParametersInfoRec *        VDVideoParametersInfoPtr;
  725.  
  726. struct VDGammaInfoRec {
  727.     GammaTableID                     csLastGammaID;                /* the ID of the previous gamma table */
  728.     GammaTableID                     csNextGammaID;                /* the ID of the next gamma table */
  729.     Ptr                             csGammaPtr;                    /* Ptr to a gamma table data */
  730.     unsigned long                     csReserved;                    /* Reserved */
  731. };
  732. typedef struct VDGammaInfoRec            VDGammaInfoRec;
  733.  
  734. typedef VDGammaInfoRec *                VDGammaInfoPtr;
  735.  
  736. struct VDGetGammaListRec {
  737.     GammaTableID                     csPreviousGammaTableID;        /* ID of the previous gamma table */
  738.     GammaTableID                     csGammaTableID;                /* ID of the gamma table following csPreviousDisplayModeID */
  739.     unsigned long                     csGammaTableSize;            /* Size of the gamma table in bytes */
  740.     char *                            csGammaTableName;            /* Gamma table name (c-string) */
  741. };
  742. typedef struct VDGetGammaListRec        VDGetGammaListRec;
  743.  
  744. typedef VDGetGammaListRec *                VDGetGammaListPtr;
  745.  
  746. struct VDRetrieveGammaRec {
  747.     GammaTableID                     csGammaTableID;                /* ID of gamma table to retrieve */
  748.     GammaTbl *                        csGammaTablePtr;            /* Location to copy desired gamma to */
  749. };
  750. typedef struct VDRetrieveGammaRec        VDRetrieveGammaRec;
  751.  
  752. typedef VDRetrieveGammaRec *            VDRetrieveGammaPtr;
  753.  
  754. struct VDSetHardwareCursorRec {
  755.     void *                            csCursorRef;                /* reference to cursor data */
  756.     UInt32                             csReserved1;                /* reserved for future use */
  757.     UInt32                             csReserved2;                /* should be ignored */
  758. };
  759. typedef struct VDSetHardwareCursorRec    VDSetHardwareCursorRec;
  760.  
  761. typedef VDSetHardwareCursorRec *        VDSetHardwareCursorPtr;
  762.  
  763. struct VDDrawHardwareCursorRec {
  764.     SInt32                             csCursorX;                    /* x coordinate */
  765.     SInt32                             csCursorY;                    /* y coordinate */
  766.     UInt32                             csCursorVisible;            /* true if cursor is must be visible */
  767.     UInt32                             csReserved1;                /* reserved for future use */
  768.     UInt32                             csReserved2;                /* should be ignored */
  769. };
  770. typedef struct VDDrawHardwareCursorRec    VDDrawHardwareCursorRec;
  771.  
  772. typedef VDDrawHardwareCursorRec *        VDDrawHardwareCursorPtr;
  773.  
  774. struct VDSupportsHardwareCursorRec {
  775.     UInt32                             csSupportsHardwareCursor;
  776.                                                                 /* true if hardware cursor is supported */
  777.     UInt32                             csReserved1;                /* reserved for future use */
  778.     UInt32                             csReserved2;                /* must be zero */
  779. };
  780. typedef struct VDSupportsHardwareCursorRec VDSupportsHardwareCursorRec;
  781.  
  782. typedef VDSupportsHardwareCursorRec *    VDSupportsHardwareCursorPtr;
  783.  
  784. struct VDHardwareCursorDrawStateRec {
  785.     SInt32                             csCursorX;                    /* x coordinate */
  786.     SInt32                             csCursorY;                    /* y coordinate */
  787.     UInt32                             csCursorVisible;            /* true if cursor is visible */
  788.     UInt32                             csCursorSet;                /* true if cursor successfully set by last set control call */
  789.     UInt32                             csReserved1;                /* reserved for future use */
  790.     UInt32                             csReserved2;                /* must be zero */
  791. };
  792. typedef struct VDHardwareCursorDrawStateRec VDHardwareCursorDrawStateRec;
  793.  
  794. typedef VDHardwareCursorDrawStateRec *    VDHardwareCursorDrawStatePtr;
  795.  
  796. struct VDConvolutionInfoRec {
  797.     DisplayModeID                     csDisplayModeID;            /* the ID of the resolution we want info on */
  798.     DepthMode                         csDepthMode;                /* The bit depth we want the info on (0x80 based) */
  799.     unsigned long                     csPage;
  800.     UInt32                             csFlags;
  801.     UInt32                             csReserved;
  802. };
  803. typedef struct VDConvolutionInfoRec        VDConvolutionInfoRec;
  804.  
  805. typedef VDConvolutionInfoRec *            VDConvolutionInfoPtr;
  806.  
  807. struct VDPowerStateRec {
  808.     unsigned long                     powerState;
  809.     unsigned long                     powerFlags;
  810.  
  811.     unsigned long                     powerReserved1;
  812.     unsigned long                     powerReserved2;
  813. };
  814. typedef struct VDPowerStateRec            VDPowerStateRec;
  815.  
  816. typedef VDPowerStateRec *                VDPowerStatePtr;
  817. /*
  818.     Private Data to video drivers.
  819.     
  820.     In versions of MacOS with multiple address spaces (System 8), the OS 
  821.     must know the extent of parameters in order to move them between the caller
  822.     and driver.  The old private-selector model for video drivers does not have
  823.     this information so:
  824.     
  825.     For post-7.x Systems private calls should be implemented using the cscPrivateCall
  826. */
  827.  
  828. struct VDPrivateSelectorDataRec {
  829.     LogicalAddress                     privateParameters;            /* Caller's parameters*/
  830.     ByteCount                         privateParametersSize;        /* Size of data sent from caller to driver*/
  831.     LogicalAddress                     privateResults;                /* Caller's return area. Can be nil, or same as privateParameters.*/
  832.     ByteCount                         privateResultsSize;            /* Size of data driver returns to caller. Can be nil, or same as privateParametersSize.*/
  833. };
  834. typedef struct VDPrivateSelectorDataRec    VDPrivateSelectorDataRec;
  835.  
  836. struct VDPrivateSelectorRec {
  837.     UInt32                             reserved;                    /* Reserved (set to 0). */
  838.     VDPrivateSelectorDataRec         data[1];
  839. };
  840. typedef struct VDPrivateSelectorRec        VDPrivateSelectorRec;
  841.  
  842. struct VDDDCBlockRec {
  843.     UInt32                             ddcBlockNumber;                /* Input -- DDC EDID (Extended Display Identification Data) number (1-based) */
  844.     ResType                         ddcBlockType;                /* Input -- DDC block type (EDID/VDIF) */
  845.     UInt32                             ddcFlags;                    /* Input -- DDC Flags*/
  846.     UInt32                             ddcReserved;                /* Reserved */
  847.     Byte                             ddcBlockData[128];            /* Output -- DDC EDID/VDIF data (kDDCBlockSize) */
  848. };
  849. typedef struct VDDDCBlockRec            VDDDCBlockRec;
  850.  
  851. typedef VDDDCBlockRec *                    VDDDCBlockPtr;
  852. typedef UInt32                             VDClutBehavior;
  853. typedef VDClutBehavior *                VDClutBehaviorPtr;
  854.  
  855. enum {
  856.     kSetClutAtSetEntries        = 0,                            /* SetEntries behavior is to update clut during SetEntries call*/
  857.     kSetClutAtVBL                = 1                                /* SetEntries behavior is to upate clut at next vbl*/
  858. };
  859.  
  860.  
  861.  
  862. #if PRAGMA_STRUCT_ALIGN
  863.     #pragma options align=reset
  864. #elif PRAGMA_STRUCT_PACKPUSH
  865.     #pragma pack(pop)
  866. #elif PRAGMA_STRUCT_PACK
  867.     #pragma pack()
  868. #endif
  869.  
  870. #ifdef PRAGMA_IMPORT_OFF
  871. #pragma import off
  872. #elif PRAGMA_IMPORT
  873. #pragma import reset
  874. #endif
  875.  
  876. #ifdef __cplusplus
  877. }
  878. #endif
  879.  
  880. #endif /* __VIDEO__ */
  881.  
  882.